MY_DIR := $(call my-dir)

MY_MUPDF_HOME := ../../mupdf-1.1-source

include $(MY_DIR)/MupdfCore.mk
include $(MY_DIR)/MupdfThirdparty.mk

include $(CLEAR_VARS)

LOCAL_C_INCLUDES := \
    $(MY_MUPDF_HOME)/cbz\
    $(MY_MUPDF_HOME)/fitz\
    $(MY_MUPDF_HOME)/pdf\
    $(MY_MUPDF_HOME)/xps

LOCAL_CFLAGS += -Wall -Werror -Wextra -Wno-format-zero-length -Wno-unused-parameter -Wno-uninitialized  

LOCAL_LDLIBS := -llog

LOCAL_MODULE := octopuspdf

LOCAL_SRC_FILES := op.c

LOCAL_PATH := $(MY_DIR)

LOCAL_STATIC_LIBRARIES := mupdfcore mupdfthirdparty

include $(BUILD_SHARED_LIBRARY)
